Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use attributes to define routes #2353

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Chartman123
Copy link
Collaborator

@Chartman123 Chartman123 commented Oct 5, 2024

This pull request introduces significant changes to the API routing and controller structure by centralizing constants and updating route definitions. The most important changes include moving the route definition from routes.php to the Controller attributes, and the introduction of constants for API base paths and requirements.

These changes enhance maintainability by centralizing configuration and leveraging modern PHP features for cleaner and more readable code.

@Chartman123 Chartman123 added 2. developing Work in progress technical debt Technical issue labels Oct 5, 2024
@Chartman123 Chartman123 added this to the 5.0 milestone Oct 5, 2024
@Chartman123 Chartman123 requested review from Koc and susnux October 5, 2024 13:04
@Chartman123 Chartman123 self-assigned this Oct 5, 2024
@Chartman123 Chartman123 linked an issue Oct 5, 2024 that may be closed by this pull request
Copy link

codecov bot commented Oct 5, 2024

Codecov Report

Attention: Patch coverage is 36.36364% with 21 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@be0c5a1). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2353   +/-   ##
=======================================
  Coverage        ?   43.13%           
  Complexity      ?      851           
=======================================
  Files           ?       72           
  Lines           ?     3162           
  Branches        ?        0           
=======================================
  Hits            ?     1364           
  Misses          ?     1798           
  Partials        ?        0           

@Chartman123 Chartman123 force-pushed the chore/use-route-attributes branch 2 times, most recently from 951b97d to 68b1920 Compare October 5, 2024 13:19
@Chartman123 Chartman123 added the Do not merge Don't merge, as it will break master (e.g. due to pending dependency) label Oct 5, 2024
@Chartman123 Chartman123 force-pushed the chore/use-route-attributes branch 2 times, most recently from 758f281 to 29fd096 Compare October 14, 2024 15:13
@Chartman123 Chartman123 marked this pull request as ready for review October 14, 2024 15:13
@Chartman123 Chartman123 added 3. to review Waiting for reviews and removed 2. developing Work in progress Do not merge Don't merge, as it will break master (e.g. due to pending dependency) labels Oct 14, 2024
@Chartman123 Chartman123 force-pushed the chore/use-route-attributes branch 3 times, most recently from 0199be5 to 30ba7c4 Compare October 14, 2024 20:13
@Chartman123
Copy link
Collaborator Author

@susnux ready for review now :)

appinfo/routes.php Outdated Show resolved Hide resolved
Signed-off-by: Christian Hartmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews technical debt Technical issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move route definition to API Controller
2 participants